package com.bjesc_b2c.app.appraiset.mvp.presenter.impl;

import android.content.Context;

import com.bjesc_b2c.app.appraiset.mvp.model.CarDetailsModel;
import com.bjesc_b2c.app.appraiset.mvp.model.impl.CarDetailsModelImpl;
import com.bjesc_b2c.app.appraiset.mvp.view.CarDateilsView;

import master_bean.CarDetailsBean;

/**
 * Created by yidong on 2017/5/18.
 */

public class CarDetailsPresenterImpl implements CarDetailsPresenter,CarDetailsModelImpl.DeteilsCallBack{
    private CarDetailsModel detailsModel;
    private CarDateilsView carView;

    public CarDetailsPresenterImpl(CarDateilsView carView){
        this.carView = carView;
        detailsModel = new CarDetailsModelImpl(this);
    }
    @Override
    public void getCarDetails(Context context) {
        detailsModel.getCarDetails(context);
    }

        @Override
        public void datecallBack(CarDetailsBean carBean) {
            carView.getCarDateils(carBean);
        }


}
